<?php
	require_once("../inc/users.php");
	$results = GetUsers();
		
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Database Interaction</title>
		<meta name="description" content="" />
		<link type="text/css" href="../inc/css/bootstrap.css"/>
   	</head>

	<body>
    	<table>
        	<thead>
            	<th>First Name</th>
                <th>Last Name</th>
                <th>Actions</th>
            </thead>
		<? while($rs = $results->fetch_assoc()) : ?>
        	<tr>
            	<td><?=$rs['FirstName']?></td>
                <td> <?=$rs['LastName']?> </td>
                <td>
                	<a href="details.php?<?=$rs['id']?>">Details</a>
                    <a href="#">Edit</a>
                    <a href="#">Delete</a>
                </td>
        <? endwhile; ?>
        </table>
	</body>
</html>
